/**
 * Created by Administrator on 2017/5/3.
 */
$(document).ready(function () {
    $('h2').click(function () {
        $(this)
            .animate({
                opacity: '.25',
                marginLeft: '20px'
            },
                'slow')
            .queue(function () {
                $('p:first').css('opacity', '.5');
            });
    });
});